use axum::Json;
use com::select_folder;
use sea_orm::query::*;

pub async fn pick_folder() -> Result<Json<JsonValue>, Json<JsonValue>>{
    select_folder::rfd::pick_folder().await
}
pub async fn pick_file() -> Result<Json<JsonValue>, Json<JsonValue>>{
    select_folder::rfd::pick_file().await
}